package com.esri.core.ags;

/* loaded from: classes.dex */
public class MapServiceCapabilities {
    private String a;
    private boolean b;
    private boolean c;
    private boolean d;

    public MapServiceCapabilities(String str) {
        this.a = str;
        if (str == null || str.length() <= 0) {
            return;
        }
        String lowerCase = str.toLowerCase();
        if (lowerCase.contains("map")) {
            this.b = true;
        }
        if (lowerCase.contains("query")) {
            this.b = true;
        }
        if (lowerCase.contains("data")) {
            this.b = true;
        }
    }

    public boolean isMapSupported() {
        return this.b;
    }

    public boolean isQuerySupported() {
        return this.c;
    }

    public boolean isDataSupported() {
        return this.d;
    }

    public String toString() {
        return this.a;
    }
}
